package com.zrrd.learn.chapter03;

/**
 * 宠物之家
 *
 * @author asus
 * @version 1.0
 * @date 2023/5/13 14:25
 */
public class LearnPet {
    public static String salePet(PetEnum pet){
        return "编号为" +pet.getId() +"名字叫"+pet.getName()+"种类"+pet.getType();
    }

    public static void main(String[] args) {
        String s = salePet(PetEnum.pet10001);
        System.out.println(s);
    }

}
